import 'package:flutter/material.dart';
import 'package:flutter_ideal/page/page_login.dart';

void main() => runApp(MyApp("app/login"));

class MyApp extends StatelessWidget {
  final String route;

  MyApp(this.route);

  @override
  Widget build(BuildContext context) {
    switch (route) {
      case "app/login":
        return new MaterialApp(
          home: new LoginPage(),
        );
        break;
      default:
        return Center(
          child:
          Text('Unknown route: $route', textDirection: TextDirection.ltr),
        );
    }
  }
}